package cn.touna.jss.modules.credit.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuthFaceHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthFaceHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdNoIsNull() {
            addCriterion("id_no is null");
            return (Criteria) this;
        }

        public Criteria andIdNoIsNotNull() {
            addCriterion("id_no is not null");
            return (Criteria) this;
        }

        public Criteria andIdNoEqualTo(String value) {
            addCriterion("id_no =", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotEqualTo(String value) {
            addCriterion("id_no <>", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoGreaterThan(String value) {
            addCriterion("id_no >", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoGreaterThanOrEqualTo(String value) {
            addCriterion("id_no >=", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLessThan(String value) {
            addCriterion("id_no <", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLessThanOrEqualTo(String value) {
            addCriterion("id_no <=", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoLike(String value) {
            addCriterion("id_no like", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotLike(String value) {
            addCriterion("id_no not like", value, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoIn(List<String> values) {
            addCriterion("id_no in", values, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotIn(List<String> values) {
            addCriterion("id_no not in", values, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoBetween(String value1, String value2) {
            addCriterion("id_no between", value1, value2, "idNo");
            return (Criteria) this;
        }

        public Criteria andIdNoNotBetween(String value1, String value2) {
            addCriterion("id_no not between", value1, value2, "idNo");
            return (Criteria) this;
        }

        public Criteria andMobileIsNull() {
            addCriterion("mobile is null");
            return (Criteria) this;
        }

        public Criteria andMobileIsNotNull() {
            addCriterion("mobile is not null");
            return (Criteria) this;
        }

        public Criteria andMobileEqualTo(String value) {
            addCriterion("mobile =", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotEqualTo(String value) {
            addCriterion("mobile <>", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileGreaterThan(String value) {
            addCriterion("mobile >", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileGreaterThanOrEqualTo(String value) {
            addCriterion("mobile >=", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLessThan(String value) {
            addCriterion("mobile <", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLessThanOrEqualTo(String value) {
            addCriterion("mobile <=", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileLike(String value) {
            addCriterion("mobile like", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotLike(String value) {
            addCriterion("mobile not like", value, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileIn(List<String> values) {
            addCriterion("mobile in", values, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotIn(List<String> values) {
            addCriterion("mobile not in", values, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileBetween(String value1, String value2) {
            addCriterion("mobile between", value1, value2, "mobile");
            return (Criteria) this;
        }

        public Criteria andMobileNotBetween(String value1, String value2) {
            addCriterion("mobile not between", value1, value2, "mobile");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiIsNull() {
            addCriterion("face_rego_simi is null");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiIsNotNull() {
            addCriterion("face_rego_simi is not null");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiEqualTo(String value) {
            addCriterion("face_rego_simi =", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiNotEqualTo(String value) {
            addCriterion("face_rego_simi <>", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiGreaterThan(String value) {
            addCriterion("face_rego_simi >", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiGreaterThanOrEqualTo(String value) {
            addCriterion("face_rego_simi >=", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiLessThan(String value) {
            addCriterion("face_rego_simi <", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiLessThanOrEqualTo(String value) {
            addCriterion("face_rego_simi <=", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiLike(String value) {
            addCriterion("face_rego_simi like", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiNotLike(String value) {
            addCriterion("face_rego_simi not like", value, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiIn(List<String> values) {
            addCriterion("face_rego_simi in", values, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiNotIn(List<String> values) {
            addCriterion("face_rego_simi not in", values, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiBetween(String value1, String value2) {
            addCriterion("face_rego_simi between", value1, value2, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRegoSimiNotBetween(String value1, String value2) {
            addCriterion("face_rego_simi not between", value1, value2, "faceRegoSimi");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccIsNull() {
            addCriterion("face_reco_is_succ is null");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccIsNotNull() {
            addCriterion("face_reco_is_succ is not null");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccEqualTo(Boolean value) {
            addCriterion("face_reco_is_succ =", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccNotEqualTo(Boolean value) {
            addCriterion("face_reco_is_succ <>", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccGreaterThan(Boolean value) {
            addCriterion("face_reco_is_succ >", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccGreaterThanOrEqualTo(Boolean value) {
            addCriterion("face_reco_is_succ >=", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccLessThan(Boolean value) {
            addCriterion("face_reco_is_succ <", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccLessThanOrEqualTo(Boolean value) {
            addCriterion("face_reco_is_succ <=", value, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccIn(List<Boolean> values) {
            addCriterion("face_reco_is_succ in", values, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccNotIn(List<Boolean> values) {
            addCriterion("face_reco_is_succ not in", values, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccBetween(Boolean value1, Boolean value2) {
            addCriterion("face_reco_is_succ between", value1, value2, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andFaceRecoIsSuccNotBetween(Boolean value1, Boolean value2) {
            addCriterion("face_reco_is_succ not between", value1, value2, "faceRecoIsSucc");
            return (Criteria) this;
        }

        public Criteria andCrNoIsNull() {
            addCriterion("cr_no is null");
            return (Criteria) this;
        }

        public Criteria andCrNoIsNotNull() {
            addCriterion("cr_no is not null");
            return (Criteria) this;
        }

        public Criteria andCrNoEqualTo(String value) {
            addCriterion("cr_no =", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotEqualTo(String value) {
            addCriterion("cr_no <>", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoGreaterThan(String value) {
            addCriterion("cr_no >", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoGreaterThanOrEqualTo(String value) {
            addCriterion("cr_no >=", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLessThan(String value) {
            addCriterion("cr_no <", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLessThanOrEqualTo(String value) {
            addCriterion("cr_no <=", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoLike(String value) {
            addCriterion("cr_no like", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotLike(String value) {
            addCriterion("cr_no not like", value, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoIn(List<String> values) {
            addCriterion("cr_no in", values, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotIn(List<String> values) {
            addCriterion("cr_no not in", values, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoBetween(String value1, String value2) {
            addCriterion("cr_no between", value1, value2, "crNo");
            return (Criteria) this;
        }

        public Criteria andCrNoNotBetween(String value1, String value2) {
            addCriterion("cr_no not between", value1, value2, "crNo");
            return (Criteria) this;
        }

        public Criteria andEventTypeIsNull() {
            addCriterion("event_type is null");
            return (Criteria) this;
        }

        public Criteria andEventTypeIsNotNull() {
            addCriterion("event_type is not null");
            return (Criteria) this;
        }

        public Criteria andEventTypeEqualTo(String value) {
            addCriterion("event_type =", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeNotEqualTo(String value) {
            addCriterion("event_type <>", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeGreaterThan(String value) {
            addCriterion("event_type >", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeGreaterThanOrEqualTo(String value) {
            addCriterion("event_type >=", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeLessThan(String value) {
            addCriterion("event_type <", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeLessThanOrEqualTo(String value) {
            addCriterion("event_type <=", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeLike(String value) {
            addCriterion("event_type like", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeNotLike(String value) {
            addCriterion("event_type not like", value, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeIn(List<String> values) {
            addCriterion("event_type in", values, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeNotIn(List<String> values) {
            addCriterion("event_type not in", values, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeBetween(String value1, String value2) {
            addCriterion("event_type between", value1, value2, "eventType");
            return (Criteria) this;
        }

        public Criteria andEventTypeNotBetween(String value1, String value2) {
            addCriterion("event_type not between", value1, value2, "eventType");
            return (Criteria) this;
        }

        public Criteria andResultCodeIsNull() {
            addCriterion("result_code is null");
            return (Criteria) this;
        }

        public Criteria andResultCodeIsNotNull() {
            addCriterion("result_code is not null");
            return (Criteria) this;
        }

        public Criteria andResultCodeEqualTo(String value) {
            addCriterion("result_code =", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeNotEqualTo(String value) {
            addCriterion("result_code <>", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeGreaterThan(String value) {
            addCriterion("result_code >", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeGreaterThanOrEqualTo(String value) {
            addCriterion("result_code >=", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeLessThan(String value) {
            addCriterion("result_code <", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeLessThanOrEqualTo(String value) {
            addCriterion("result_code <=", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeLike(String value) {
            addCriterion("result_code like", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeNotLike(String value) {
            addCriterion("result_code not like", value, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeIn(List<String> values) {
            addCriterion("result_code in", values, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeNotIn(List<String> values) {
            addCriterion("result_code not in", values, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeBetween(String value1, String value2) {
            addCriterion("result_code between", value1, value2, "resultCode");
            return (Criteria) this;
        }

        public Criteria andResultCodeNotBetween(String value1, String value2) {
            addCriterion("result_code not between", value1, value2, "resultCode");
            return (Criteria) this;
        }

        public Criteria andExeTimeIsNull() {
            addCriterion("exe_time is null");
            return (Criteria) this;
        }

        public Criteria andExeTimeIsNotNull() {
            addCriterion("exe_time is not null");
            return (Criteria) this;
        }

        public Criteria andExeTimeEqualTo(Date value) {
            addCriterion("exe_time =", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeNotEqualTo(Date value) {
            addCriterion("exe_time <>", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeGreaterThan(Date value) {
            addCriterion("exe_time >", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("exe_time >=", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeLessThan(Date value) {
            addCriterion("exe_time <", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeLessThanOrEqualTo(Date value) {
            addCriterion("exe_time <=", value, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeIn(List<Date> values) {
            addCriterion("exe_time in", values, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeNotIn(List<Date> values) {
            addCriterion("exe_time not in", values, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeBetween(Date value1, Date value2) {
            addCriterion("exe_time between", value1, value2, "exeTime");
            return (Criteria) this;
        }

        public Criteria andExeTimeNotBetween(Date value1, Date value2) {
            addCriterion("exe_time not between", value1, value2, "exeTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}